package interview;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @@author: 爱做梦的锤子
 * @date: 2024/6/11 19:18
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        ReentrantLock lock = new ReentrantLock();
        Condition condition = lock.newCondition();
//        try {
            lock.lock();
            condition.await();
//            lock.wait();
            System.out.println(1 & 2);   // 01 10 => 00
//                        System.exit(1);
            lock.unlock();
//        } catch (Exception e) {
//
//            return;
//        } finally {
////            System.out.println(1);
//        }

    }


    public static class A {
        public A(int a) {

        }

        public A(String a) {
            System.out.println("S");
        }

        public A(Object a) {
            System.out.println("O");
        }

        public void test() {

        }
    }

    public static class B extends A {

        public B(int a) {
            super(a);
        }

        public B(int a, String c) {
            super(a);
        }

        public B(String c, int a) {
            super(a);
        }

    }

}
